package my.com.epetrol.rapidkl.view;

import my.com.epetrol.rapidkl.controller.MapHandler;
import android.content.Context;
import android.util.DisplayMetrics;
import android.view.LayoutInflater;
import android.view.WindowManager;
import android.widget.PopupWindow;

public class PopupView {
	private Context context;
	private LayoutInflater layoutInflater;
	private WindowManager windowManager;
	
	private PopupWindow popupWindow;
	
	private float scaledDensity;
	
	public PopupView(MapHandler handler) {
		this.context = handler.getActivity();
		layoutInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		windowManager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);
		
		DisplayMetrics metrics = new DisplayMetrics();
		windowManager.getDefaultDisplay().getMetrics(metrics);
		scaledDensity = metrics.scaledDensity;
		
		popupWindow = new PopupWindow(context);
	}
}
